package com.baohua.service;

import java.util.List;

import com.baohua.exception.BaohuaSystemException;
import com.baohua.model.Member;
/**
 * 会员Service接口
 * @author czp
 *
 */
public interface MemberService {

		/**
		 * 查询会员列表
		 * @return
		 */
		public List<Member> queryMember(String sql, int page, int pageSize);
		
		/**
		 * 根据会员编号查询会员
		 * @param memberNo
		 * @return
		 */
		public Member queryMemberByMemberNo(String memberNo) throws BaohuaSystemException;
		
		/**
		 * 根据会员姓名查询会员
		 * @param memberName
		 * @return
		 */
		public Member queryMemberBymemberName(String memberName) throws BaohuaSystemException;
		
		/**
		 * 增加会员
		 * @param member
		 */
		public void addMember(Member member) throws BaohuaSystemException;
		
		/**
		 * 删除会员
		 * @param member
		 */
		public void delMember(int memberId) throws BaohuaSystemException;
		
		/**
		 * 修改会员
		 * @param member
		 */
		public void updateMember(Member member) throws BaohuaSystemException;
		
		/**
		 * 统计会员数
		 * @return
		 */
		public long countMember(String sql);
		
		/**
		 * 根据会员Id进行查询
		 * @param MemberId
		 * @return
		 * @throws BaohuaSystemException
		 */
		public Member queryMemberById(int MemberId) throws BaohuaSystemException;
		
}
